package com.springboot.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "ssm_menu")
public class Menu {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField(value = "menu_name")
    private String menuName;
    private String menuType;
    private String icon;
    private String src;
    @TableField(exist = false)  //表示该属性不为数据列
    private List<Role> roles;
}
